package csx.study.demo.controller;

import csx.study.demo.dto.Result;
import csx.study.demo.entity.ShopType;
import csx.study.demo.service.IShopService;
import csx.study.demo.service.IShopTypeService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author csx
 * @since 2025-03-03
 */
@RestController
@RequestMapping("/shop-type")
public class ShopTypeController {
    @Resource
    private IShopTypeService shopTypeService;

    @GetMapping("list")
    public Result queryTypeList() {

        return shopTypeService.queryTypeList();
    }
}
